<template>
  <div class="xgybgboxrect">
    <div class="linebox">
      <div class="line"></div>
    </div>

    <div class="rect">
      <div class="recttitle">
        <slot name="recttitle"></slot>
      </div>
      <div class="rectcontent">
        <slot name="rectcontent"></slot>
      </div>
    </div>

  </div>
</template>

<script>
export default {
  name: "XgyBgBoxRect"

}
</script>

<style lang="less" scoped>
.xgybgboxrect {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 100%;
  background-image: url("../../assets/driverhouseimg/detailboxbg.png");
  background-size: 300%;
  background-position: -0.55rem -9px;
  background-repeat: no-repeat;
  border-radius: 0.15rem;
  .linebox {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    .line {
      width: 100%;
      height: 0.05rem;
      background-color: #74d7e2;
    }
  }

  .rect {
    display: flex;
    justify-content: center;
    align-items: center;
    .rectcontent {
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
}
</style>